package com.example.springbootdemo.util;


import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class LocalDateTimeUtil {

    private static final String format = "yyyy-MM-dd HH:mm:ss";

    public static String getLocalDateTime(LocalDateTime dateTime) {
        return dateTime.format(DateTimeFormatter.ofPattern(format));
    }
}
